See [#148 - "document is not defined" when using bootstrap js](https://github.com/brillout/vite-plugin-ssr/issues/148):
 - [#148 - Comment](https://github.com/brillout/vite-plugin-ssr/issues/148#issuecomment-923843103)
 - [#148 - Comment](https://github.com/brillout/vite-plugin-ssr/issues/148#issuecomment-924852351)
